.class public Les/u50;
.super Les/t50;
.source "NTFSNonResidentAttribute.java"


# instance fields
.field private f:I

.field private final g:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/fs/impl/usb/fs/ntfs/d;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/l;I)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Les/t50;-><init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/l;I)V

    const/4 p1, 0x0

    .line 2
    iput p1, p0, Les/u50;->f:I

    .line 3
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Les/u50;->g:Ljava/util/List;

    .line 4
    invoke-virtual {p0}, Les/u50;->o()I

    move-result p1

    if-lez p1, :cond_0

    .line 5
    invoke-direct {p0, p1}, Les/u50;->m(I)V

    :cond_0
    return-void
.end method

.method private m(I)V
    .locals 34

    move-object/from16 v7, p0

    .line 2
    invoke-virtual/range {p0 .. p0}, Les/u50;->n()Ljava/util/List;

    move-result-object v8

    .line 3
    invoke-virtual/range {p0 .. p0}, Les/t50;->g()I

    move-result v0

    const/4 v9, 0x1

    and-int/2addr v0, v9

    const/4 v10, 0x0

    if-eqz v0, :cond_0

    const/4 v11, 0x1

    goto :goto_0

    :cond_0
    const/4 v11, 0x0

    .line 4
    :goto_0
    invoke-virtual/range {p0 .. p0}, Les/u50;->m()I

    move-result v0

    shl-int v12, v9, v0

    const-wide/16 v0, 0x0

    move/from16 v13, p1

    move-wide/from16 v22, v0

    move-wide/from16 v24, v22

    const/4 v14, 0x0

    const/4 v15, 0x0

    .line 5
    :goto_1
    invoke-virtual {v7, v13}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->l(I)I

    move-result v0

    if-eqz v0, :cond_7

    .line 6
    new-instance v5, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;

    move-object v0, v5

    move-object/from16 v1, p0

    move v2, v13

    move-wide/from16 v3, v22

    move-object/from16 p1, v5

    move-wide/from16 v5, v24

    invoke-direct/range {v0 .. v6}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;-><init>(Les/u50;IJJ)V

    if-eqz v11, :cond_5

    .line 7
    invoke-virtual/range {p1 .. p1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->f()Z

    move-result v0

    if-eqz v0, :cond_2

    if-eqz v14, :cond_2

    .line 8
    invoke-virtual/range {p1 .. p1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d()I

    move-result v0

    add-int/2addr v0, v15

    if-le v0, v12, :cond_1

    .line 9
    invoke-virtual/range {p1 .. p1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d()I

    move-result v0

    sub-int v1, v12, v15

    sub-int/2addr v0, v1

    .line 10
    new-instance v1, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;

    const-wide/16 v15, 0x0

    const/16 v18, 0x1

    const/16 v19, 0x0

    move-object v14, v1

    move/from16 v17, v0

    move-wide/from16 v20, v22

    invoke-direct/range {v14 .. v21}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;-><init>(JIZIJ)V

    invoke-interface {v8, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 11
    iget v1, v7, Les/u50;->f:I

    add-int/2addr v1, v0

    iput v1, v7, Les/u50;->f:I

    int-to-long v0, v0

    add-long v22, v22, v0

    move-object/from16 v0, p1

    goto/16 :goto_2

    :cond_1
    move-object/from16 v0, p1

    const/4 v14, 0x0

    goto/16 :goto_3

    .line 12
    :cond_2
    invoke-virtual/range {p1 .. p1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d()I

    move-result v0

    if-lt v0, v12, :cond_4

    .line 13
    invoke-virtual/range {p1 .. p1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d()I

    move-result v0

    rem-int/2addr v0, v12

    if-eqz v0, :cond_3

    .line 14
    invoke-virtual/range {p1 .. p1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d()I

    move-result v1

    sub-int/2addr v1, v0

    .line 15
    new-instance v2, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;

    invoke-virtual/range {p1 .. p1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->a()J

    move-result-wide v15

    const/16 v18, 0x0

    const/16 v19, 0x0

    move-object v14, v2

    move/from16 v17, v1

    move-wide/from16 v20, v22

    invoke-direct/range {v14 .. v21}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;-><init>(JIZIJ)V

    .line 16
    invoke-interface {v8, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    int-to-long v2, v1

    add-long v22, v22, v2

    .line 17
    iget v4, v7, Les/u50;->f:I

    add-int/2addr v4, v1

    iput v4, v7, Les/u50;->f:I

    .line 18
    new-instance v1, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;

    .line 19
    invoke-virtual/range {p1 .. p1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->a()J

    move-result-wide v4

    add-long v27, v4, v2

    const/16 v30, 0x0

    const/16 v31, 0x0

    move-object/from16 v26, v1

    move/from16 v29, v0

    move-wide/from16 v32, v22

    invoke-direct/range {v26 .. v33}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;-><init>(JIZIJ)V

    .line 20
    new-instance v2, Lcom/estrongs/fs/impl/usb/fs/ntfs/b;

    invoke-direct {v2, v1, v12}, Lcom/estrongs/fs/impl/usb/fs/ntfs/b;-><init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/c;I)V

    invoke-interface {v8, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 21
    iget v1, v7, Les/u50;->f:I

    add-int/2addr v1, v12

    iput v1, v7, Les/u50;->f:I

    int-to-long v1, v12

    add-long v22, v22, v1

    move v15, v0

    const/4 v14, 0x1

    move-object/from16 v0, p1

    goto :goto_3

    :cond_3
    move-object/from16 v0, p1

    .line 22
    invoke-interface {v8, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 23
    iget v1, v7, Les/u50;->f:I

    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d()I

    move-result v2

    add-int/2addr v1, v2

    iput v1, v7, Les/u50;->f:I

    .line 24
    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d()I

    move-result v1

    int-to-long v1, v1

    add-long v22, v22, v1

    goto :goto_3

    :cond_4
    move-object/from16 v0, p1

    .line 25
    new-instance v1, Lcom/estrongs/fs/impl/usb/fs/ntfs/b;

    invoke-direct {v1, v0, v12}, Lcom/estrongs/fs/impl/usb/fs/ntfs/b;-><init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/c;I)V

    invoke-interface {v8, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 26
    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d()I

    move-result v15

    .line 27
    iget v1, v7, Les/u50;->f:I

    add-int/2addr v1, v12

    iput v1, v7, Les/u50;->f:I

    int-to-long v1, v12

    add-long v22, v22, v1

    const/4 v14, 0x1

    goto :goto_3

    :cond_5
    move-object/from16 v0, p1

    .line 28
    invoke-interface {v8, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 29
    iget v1, v7, Les/u50;->f:I

    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d()I

    move-result v2

    add-int/2addr v1, v2

    iput v1, v7, Les/u50;->f:I

    .line 30
    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->d()I

    move-result v1

    int-to-long v1, v1

    add-long v22, v22, v1

    :goto_2
    const/4 v14, 0x0

    const/4 v15, 0x0

    .line 31
    :goto_3
    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->f()Z

    move-result v1

    if-nez v1, :cond_6

    .line 32
    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->a()J

    move-result-wide v1

    move-wide/from16 v24, v1

    .line 33
    :cond_6
    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/c;->e()I

    move-result v0

    add-int/2addr v13, v0

    goto/16 :goto_1

    .line 34
    :cond_7
    invoke-virtual/range {p0 .. p0}, Les/t50;->f()Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/r;->f()Lcom/estrongs/fs/impl/usb/fs/ntfs/t;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/t;->b()I

    move-result v0

    .line 35
    invoke-virtual/range {p0 .. p0}, Les/u50;->l()J

    move-result-wide v1

    const-wide/16 v3, 0x1

    sub-long/2addr v1, v3

    int-to-long v3, v0

    div-long/2addr v1, v3

    return-void
.end method


# virtual methods
.method public a(J[BII)I
    .locals 12
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0}, Les/t50;->g()I

    move-result v0

    and-int/lit16 v0, v0, 0x4000

    if-nez v0, :cond_2

    .line 2
    invoke-virtual {p0}, Les/t50;->f()Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/r;->f()Lcom/estrongs/fs/impl/usb/fs/ntfs/t;

    move-result-object v0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/t;->b()I

    move-result v9

    const/4 v1, 0x0

    .line 4
    invoke-virtual {p0}, Les/u50;->n()Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v10

    const/4 v11, 0x0

    :cond_0
    invoke-interface {v10}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v10}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/fs/impl/usb/fs/ntfs/d;

    move-wide v2, p1

    move-object v4, p3

    move/from16 v5, p4

    move/from16 v6, p5

    move v7, v9

    move-object v8, v0

    .line 5
    invoke-interface/range {v1 .. v8}, Lcom/estrongs/fs/impl/usb/fs/ntfs/d;->a(J[BIIILcom/estrongs/fs/impl/usb/fs/ntfs/t;)I

    move-result v1

    add-int/2addr v11, v1

    move/from16 v1, p5

    if-ne v11, v1, :cond_0

    :cond_1
    return v11

    .line 6
    :cond_2
    new-instance v0, Ljava/io/IOException;

    const-string v1, "Reading encrypted files is not supported"

    invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    goto :goto_1

    :goto_0
    throw v0

    :goto_1
    goto :goto_0
.end method

.method public k()J
    .locals 2

    const/16 v0, 0x30

    .line 1
    invoke-virtual {p0, v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->e(I)J

    move-result-wide v0

    return-wide v0
.end method

.method public l()J
    .locals 2

    const/16 v0, 0x28

    .line 1
    invoke-virtual {p0, v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->i(I)J

    move-result-wide v0

    return-wide v0
.end method

.method public m()I
    .locals 1

    const/16 v0, 0x22

    .line 1
    invoke-virtual {p0, v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->g(I)I

    move-result v0

    return v0
.end method

.method public n()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/impl/usb/fs/ntfs/d;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/u50;->g:Ljava/util/List;

    return-object v0
.end method

.method public o()I
    .locals 1

    const/16 v0, 0x20

    .line 1
    invoke-virtual {p0, v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->g(I)I

    move-result v0

    return v0
.end method

.method public p()I
    .locals 1

    .line 1
    iget v0, p0, Les/u50;->f:I

    return v0
.end method

.method public q()J
    .locals 2

    const/16 v0, 0x10

    .line 1
    invoke-virtual {p0, v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/s;->i(I)J

    move-result-wide v0

    return-wide v0
.end method

.method public toString()Ljava/lang/String;
    .locals 3

    const/4 v0, 0x4

    new-array v0, v0, [Ljava/lang/Object;

    .line 1
    invoke-virtual {p0}, Les/t50;->e()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x0

    aput-object v1, v0, v2

    .line 2
    invoke-virtual {p0}, Les/t50;->d()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    aput-object v1, v0, v2

    invoke-virtual {p0}, Les/u50;->k()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    const/4 v2, 0x2

    aput-object v1, v0, v2

    invoke-virtual {p0}, Les/u50;->n()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x3

    aput-object v1, v0, v2

    const-string v1, "[attribute (non-res) type=x%x name\'%s\' size=%d runs=%d]"

    .line 3
    invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
